﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MediaLibraryManagement.UI
{
    public partial class ArtistSearchPane : UserControl
    {
        public string ArtistName
        {
            get
            {
                if(string.IsNullOrWhiteSpace(txtName.Text))
                {
                    txtName.Text = txtName.Text.Trim();
                }
                return txtName.Text;
            }
        }

        public string Company
        {
            get
            {
                if (string.IsNullOrWhiteSpace(txtCompany.Text))
                {
                    txtCompany.Text = txtCompany.Text.Trim();
                }
                return txtCompany.Text;
            }
        }

        public string Country
        {
            get
            {
                if (string.IsNullOrWhiteSpace(txtCountry.Text))
                {
                    txtCountry.Text = txtCountry.Text.Trim();
                }
                return txtCountry.Text;
            }
        }

        public ArtistSearchPane()
        {
            InitializeComponent();
        }
    }
}
